//
//  Team.m
//  Fangmm
//
//  Created by ChaoZhou on 16/3/11.
//  Copyright © 2016年 com.fangmm. All rights reserved.
//

#import "Team.h"
#import "Seat.h"

@implementation Team
-(instancetype)initWithDic:(NSDictionary*)dic
{
    self = [super init];
    if (self)
    {
        self.seatArray = [[NSMutableArray alloc]init];
        [self setValuesForKeysWithDictionary:dic];
        for (NSDictionary *seatdic in self.seats)
        {
            Seat *seat = [[Seat alloc]initWithDic:seatdic];
            [self.seatArray addObject:seat];
        }
    }
    return self;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

@end
